package com.lmscn.lms.api.model;

import com.jfinal.plugin.activerecord.Model;

/**
 * Created by Czl on 2015/7/24.
 */
@SuppressWarnings("serial")
public class CourseLesson extends Model<CourseLesson> {

    public static final CourseLesson dao = new CourseLesson();

    /**
     * 根据课程ID查询课件
     * @param courseId
     * @return
     */
    public CourseLesson findByCourseId(Long courseId){
        return dao.findFirst("select * from t_course_lesson where course_id=?",courseId);
    }

}
